package com.samuel.igoodman.dao.article;

import java.util.List;

import com.samuel.igoodman.entity.article.Article;

public class ArticleDao {

	/**
	 * 根据日期获得文章列表
	 * @param date	日期
	 * @param page	当前页面
	 * @param size	页面大小
	 * @return
	 */
	public static List<Article> getArticleByDate(String date,int page,int size){
		Article art = new Article();
		String filter = " date = '" + date + "' ";
		@SuppressWarnings("unchecked")
		List<Article> list = (List<Article>) art.Filter(filter, page, size);
		return list;
	}
	
}
